from qqbot import _bot as bot
bot.Login(['-q', '752927073'])


bl = bot.List('buddy', '331319341')
if bl:
    b = bl[0]
    bot.SendTo(b, 'hello')

def onQQMessage(bot, contact, member, content):
    if content == '-hello':
        bot.SendTo(contact, '你好，我是QQ机器人')
    elif content == '-stop':
        bot.SendTo(contact, 'QQ机器人已关闭')
        bot.Stop()
